{
 "cells": [
  {
   "cell_type": "markdown",
   "source": [
    "### 和声分析笔记 （2021.12）\n",
    "---\n",
    "先运行此代码块："
   ],
   "metadata": {
    "collapsed": false,
    "pycharm": {
     "name": "#%% md\n"
    }
   }
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "outputs": [],
   "source": [
    "from music21 import *\n",
    "from IPython.display import Image\n",
    "\n",
    "def show(chord_text):\n",
    "    c = chord.Chord(chord_text)\n",
    "    return Image(filename=c.write('lily.png'))"
   ],
   "metadata": {
    "collapsed": false,
    "pycharm": {
     "name": "#%%\n"
    }
   }
  },
  {
   "cell_type": "markdown",
   "source": [
    "\n"
   ],
   "metadata": {
    "collapsed": false,
    "pycharm": {
     "name": "#%% md\n"
    }
   }
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAGoAAABJCAIAAABaeyRYAAAG50lEQVR4nO2cP2/TThjHnzQ/hJDaYDMUqRJENkyAFGEjRoSUZGVyGNnibB0veQl234GdV4CTd5B07WSDUJcixQ6V6AKSXZUhSAXlNzziZCVO2vguadr6M7ln9/Hd9/48zz3nNjcejyEjLRtXXYHrTSYfE5l8TGTyMZHJx0QmHxOZfExk8jGRyccET/mCIIiiiKPB9YebfJ7nqapaq9V4GbwejHnguq4gCGjQsiwuNq8FuTGPlIGqqp8+fcJrSZKCIGC3eS3gMHlN06TaAcBwOLRtm93stYDD6JNleTgcAoAgCK1WCwAcx/E8j0Pt1h/Gye+6LtoRBMF13fF43Ov1AMD3ffaVhS+u6xJCyuVyuVwmhIRhyG6TVT7LslA+x3GwJAxDADAMg7lu3AjDkBAyMW7K5TK7ZVb5sFoTVQEATdMYLfMiDENFUZYx88bjMZ+4r9Fo0Gtc9dbH+RqGEfdsFBppsfAfuwkAiEfLKFxijVeA53nUcamq2mq1Op1O4pPv3r1jfx0H+Sa6EZ0Jl75diCiKDMPY29ujJfv7+x8/fjw+Pk58flb5YjBOfsd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2earUaHzt4/nv5Q0vbtnHppLERLY+iyDTNRWu7bFIGLi9fvnzw4AEAHB4ejkYjujEajUYHBwdv3ryhyQwMR+hZ0oWcn58fHx+fnJxsb2+jkdFodO/evXQHT4PBAABSH1otJeMiCAKNBvBUN/5FiyAINKbBvkkXiPT+wbI9WLvABQB0XcfZBACqqlqW1Wq1dF3Hu6qq0vmLqx71CQtR+QeX7cGSSCOfaZqyLFcqFVRQ13XXdZ88eYJ3ZVnG/S8AYLKEKnvzSBm44LCiCqqqStcIURRx9Nm23e12bdte5+HDSEr5RFHEXbcsy81mM+5tX716FUVRrVZrNBqWZd3sb+3Tn/OigrZtW5YV/zAHUVXV932aj7mpsB4VIefn5/Q7ktFodHR0dPlIZaksO3Dh84cJk0ZzSzGbAmz88uLt9JO30+ngV+DxpOltI6V8zWaTrnedTsfzvNupYBrPG0VR3Fecnp7Gcyq35S86ACCdfPMF8jxv1qH1zSONfImJFnrtuu4aZpaWRMq1T9O0brerKIooio1Gg+rV7/fb7Xb8m6urhW4ll0W6TIPv+4IgTJyW4qcHV/J931WRPkDzPK9Wq+H+TBTFIAi63S4hZA2TmsuDKb6NoqjT6biuGwSBqqqNRuO2hS/rsj24pmT/SYOJTD4mMvmYyORjIpOPiUw+JjL5mMjkYyKTj4lMPib+B6Gf35iU5ShOAAAAAElFTkSuQmCC\n",
      "text/plain": "<IPython.core.display.Image object>"
     },
     "execution_count": 15,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "show('C5 D5 E5 F5 G5 F5 E5')"
   ],
   "metadata": {
    "collapsed": false,
    "pycharm": {
     "name": "#%%\n"
    }
   }
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.9.5"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 0
}